/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package NM_BD;

import java.io.File;

/**
 *
 * @author USER
 */
public class Conexion {

    private String oRaiz = "NM_ClasesGenerales/archivos/";
    private String oRutaCliente = "";

    public String oTipoArchivo(int oTipo) throws Exception {
        String oCadena = null;

        try {
            switch (oTipo) {
                case 1:
                    oRutaCliente = oRaiz + "cliente/";
                    oCadena = oRutaCliente;
                    break;

                case 2:
                    oRutaCliente = oRaiz + "reserva/";
                    oCadena = oRutaCliente;
                    break;
                case 3:
                    oRutaCliente = oRaiz + "tarifa/";
                    oCadena = oRutaCliente;
                    break;
            }

        } catch (Exception e) {
            throw new Exception(e.toString());
        } finally {
            oTipo = 0;
        }

        return oCadena;
    }
}
